<?php

namespace app\api\controller;

use app\common\controller\Api;
use app\api\service\ShareService;

class Share extends Api
{
    protected $noNeedLogin = [];
    protected $noNeedRight = '*';

    /**
     * 邀请有礼
     */
    public function share()
    {
        $data = $this->request->post();
        $res = ShareService::getUserShare($data);
        return json($res);
    }

    /**
     * 邀请列表
     */
    public function share_list()
    {
        $data = $this->request->post();
        $res = ShareService::getShareList($data);
        return json($res);
    }
}